import Vue from 'vue'
import Router from 'vue-router'
import Ems from "../components/Ems";
import Add from "../components/Add";
import Update from "../components/Update";
import Login from "../components/Login";


Vue.use(Router)

export default new Router({
  routes: [
    {path:"/login",name:"Login",component: Login},
    {path:"/ems",name:"Ems",component: Ems},
    {path:"/add",name:"Add",component:Add},
    {path:"/update/:id",name:"Update",component:Update},
    {path:"/*", redirect:"/login"},
    //{path:"/",redirect:"/ems"},
  ]
})
